package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.api.sdk.model.passanger.LastPriceInfoBuild;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.passeger.conn.ActivityNet;
import com.bbx.api.sdk.net.passeger.conn.LastPriceInfoNet;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;

/** 
 * @Path com.bbx.taxi.client.Task.MyLastPriceInfoTask.java
 * @Author 严旭文
 * @Date 2016-10-20 上午11:47:22
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 获取上次价格
 */
public class MyLastPriceInfoTask extends BaseTask{
    public DATA_TYPE TYPE=DATA_TYPE.LASTPRICE;
    LastPriceInfoBuild mLastPriceInfoBuild;
    public String city;
	public MyLastPriceInfoTask(Activity context,String order_id,String line_id) {
		super(context);
		mLastPriceInfoBuild = new LastPriceInfoBuild(context);
		mLastPriceInfoBuild.order_id=order_id;
		mLastPriceInfoBuild.line_id=line_id;
	}
	@Override
	public boolean isShow() {
		return false;
	}
	@Override
	public boolean isReturnString() {
		return false;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	public void request() {
		setType(TYPE,mLastPriceInfoBuild);
	}
	@Override
	public void success(int status,Object object) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void failed(int status, String msg,String message) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public BaseNetwork getBaseNetwork() {
		return new LastPriceInfoNet(context);
	}
}

